import { _decorator, Component, Node, AnimationClip } from 'cc'
import { StateMachine } from '../../Base/StateMachine'
import { SPIKE_COUNT_ENUM } from '../../Enum'
import State from '../../Base/State'
import { SpikesSubStateMachine } from './SpikesSubStateMachine'
const { ccclass, property } = _decorator

/**
 * Predefined variables
 * Name = SpikesFourSubStateMachine
 * DateTime = Fri Jul 22 2022 16:55:20 GMT+0800 (中国标准时间)
 * Author = Zero_Y
 * FileBasename = SpikesFourSubStateMachine.ts
 * FileBasenameNoExtension = SpikesFourSubStateMachine
 * URL = db://assets/Scripts/Spikes/SpikesFourSubStateMachine.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */

const BASE_URL = 'texture/spikes/spikesfour'
@ccclass('SpikesFourSubStateMachine')
export class SpikesFourSubStateMachine extends SpikesSubStateMachine {
  constructor(fsm: StateMachine) {
    super(fsm)
    this.stateMachines.set(SPIKE_COUNT_ENUM.ZERO, new State(fsm, `${BASE_URL}/zero`))
    this.stateMachines.set(SPIKE_COUNT_ENUM.ONE, new State(fsm, `${BASE_URL}/one`))
    this.stateMachines.set(SPIKE_COUNT_ENUM.TWO, new State(fsm, `${BASE_URL}/two`))
    this.stateMachines.set(SPIKE_COUNT_ENUM.THREE, new State(fsm, `${BASE_URL}/three`))
    this.stateMachines.set(SPIKE_COUNT_ENUM.FOUR, new State(fsm, `${BASE_URL}/four`))
    this.stateMachines.set(SPIKE_COUNT_ENUM.FIVE, new State(fsm, `${BASE_URL}/five`))
  }
}
